#include<string.h>
int str_str(char* destination, char* cource)
{
	int count = 0;
	int len = strlen(destination);
	int up = 0;
	for (int i = 0; i < len; i++)
	{
		if (*(cource + 0) == *(destination + i))
		{
			int z = 0;
			for (up = i + 1 , z= 1; z < (int)strlen(cource); up++,z++)
			{
				if (*(cource + z) != *(destination + up))
				{
					break;
				}
			}
			if (z == strlen(cource))
				count++;
		}
	}
	return count;
}
int main()
{
	char str[20] = "aabcaabcabc";
	int count = str_str(str, "abc");
	printf("count = %d\n", count);
	return 0;
}